<?php

class Tourism_freight_price_list_model extends CI_Model
{

    private $table = 'tourism_freight_price_list';

    public function getFreight($tid, $is_default = 0)
    {
        $this->db->where('tid', $tid);
        $this->db->where('is_default', $is_default);
        return $this->db->get($this->table);
    }
    
     /**
     * 删除
     * @param unknown $tid
     */
    public function deleteByTid($tid){
    	
        $this->db->where('tid',$tid);
        return $this->db->delete($this->table);
    }
}